package com.reservation.mapper;

import com.reservation.entity.Reservation;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ReservationMapper {
    // 根据预订ID查询预订信息
    Reservation getReservationById(Integer rid);

    // 查询所有预订信息
    List<Reservation> getAllReservations();

    // 插入预订信息
    int insertReservation(Reservation reservation);

    // 更新预订信息
    int updateReservation(Reservation reservation);

    // 删除预订信息
    int deleteReservation(Integer rid);
}
